package org.ueg.anotacao.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
@Entity
public class Endereco implements Serializable {

	
	private static final long serialVersionUID = 1L;
	
	@Id
	private Long id;
	
	@Column(length=30, nullable = false)
	private String rua;
	
	@Column(length=30, nullable = false)
	private String setor;
	
	@Column(length=30, nullable = false)
	private String uf;
	
	@OneToOne
	Usuario usuario;
}
